<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
</body>
<script>
    let person = new Object();
        person.name = '大黄'
        person.age= '3岁'
        person.weight = '250斤'
        person.hobby = '吃大骨头'
        person.characterristic = '走路很慢'
        console.log(person)

    let o = {
    name: 'zs',
    age: 18,
    sex: true,
    sayHi: function () {
    console.log(this.name);
        }
    };  
    console.log(o) 



    
    let a = {
        atype : '手机',
        bcolor : 'bule',
        cfunction : '可以打电话和发短信',
    }
    console.log(a)


  function createPerson(name, age, job) {
  let person = new Object();
  person.name = name;
  person.age = age;
  person.job = job;
  person.sayHi = function(){
    console.log('Hello,everyBody');
  }
  return person;
  }
  let p1 = createPerson('张三', 22, 'actor');
  console.log(p1)
    
</script>
</html>